<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>后台管理系统</title>

<link rel="stylesheet" href="Public/css/layout.css" type="text/css"
	media="screen" />
<script type="text/javascript">
	$(document).ready(function() 
    	{ 
      	  $(".tablesorter").tablesorter(); 
   	 } 
	);
	$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});
    </script>
<script type="text/javascript">
    $(function(){
        $('.column').equalHeight();
    });
</script>

</head>


<body>
	<header id="header">
		<hgroup>
			<h1 class="site_title">
				<a href="tpl/admin/index.html">后台管理面板</a>
			</h1>
			<h2 class="section_title"></h2>
			<div class="btn_view_site">
				<a href="Application/Home/View/index.html">查看网站</a>
			</div>
		</hgroup>
</header>
	<!-- end of header bar -->

	
	<!-- end of header bar -->

	<section id="secondary_bar">
		<div class="user">
			<p>admin</p>
			<!-- <a class="logout_user" href="#" title="Logout">Logout</a> -->
		</div>
		<div class="breadcrumbs_container">
			<article class="breadcrumbs">
				<a href="index.php?m=home&c=index&a=login">后台管理中心</a>
				<div class="breadcrumb_divider"></div>
				<a class="current">管理员列表</a>
			</article>
		</div>
	</section>
	<!-- end of secondary bar -->

	<aside id="sidebar" class="column">
	<h3>内容管理</h3>
	<ul class="toggle">
		<li class="icn_new_article"><a
			href="index.php?m=home&c=index&a=columnadd">添加栏目</a></li>
		<li class="icn_categories"><a
			href="index.php?m=home&c=index&a=columnlist">管理栏目</a></li>
		<li class="icn_new_article"><a
			href="index.php?m=home&c=index&a=newsadd">添加新闻</a></li>
		<li class="icn_categories"><a
			href="index.php?m=home&c=index&a=newslist">管理新闻</a></li>
		<li style="display: none;" class="icn_categories"><a
			href="">视图模型</a></li>
		<li class="icn_folder"><a
			href="index.php?m=home&c=index&a=createindex">生成首页</a></li>
	</ul>
	
	<h3>会员管理</h3>
	<ul class="toggle"><!-- style="display: none;" -->
		<li class="icn_view_users"><a
			href="index.php?m=home&c=index&a=userlist">会员信息</a></li>
		<li class="icn_categories"><a
			href="index.php?m=home&c=index&a=userlist">管理会员</a></li>
	</ul>
	
	<h3>管理员管理</h3>
	<ul class="toggle" >
		<li class="icn_add_user"><a
			href="index.php?m=home&c=index&a=adminadd">添加管理员</a></li>
		<li class="icn_profile"><a
			href="index.php?m=home&c=index&a=adminlist">查看管理员</a></li>
		<!-- <li class="icn_folder"><a
			href="#">生成首页</a></li> -->
	</ul>
	
	<h3>角色管理</h3>
	<ul class="toggle">
		<li class="icn_add_user"><a
			href="index.php?m=home&c=index&a=roleadd">添加角色</a></li>
	</ul>
	<ul class="toggle">
		<li class="icn_categories"><a
			href="index.php?m=home&c=index&a=rolelist">管理角色</a></li>
	</ul>
	
	<h3>个人信息</h3>
	<ul class="toggle">
		<li class="icn_edit_article"><a
			href="#">修改个人资料</a></li>
		<li class="icn_security"><a
			href="index.php?m=home&c=index&a=changepwd">修改密码</a></li>
		<li class="icn_jump_back"><a
			href="index.php?m=home&c=index&a=logout">退出登录</a></li>
	</ul>
	<footer> </footer>
</aside>
<!-- end of sidebar -->

	<section id="main" class="column">
		<article class="module width_full">
			<header>
				<h3 class="tabs_involved">管理员理列表</h3>
			</header>
			<div class="tab_container">
				<div id="tab1" class="tab_content">
					<table class="tablesorter" cellspacing="0" style="margin: 0">
						<thead>
							<tr>
								<th>ID</th>
								<th>用户</th>
								<th>角色</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<?php if(is_array($data)): foreach($data as $key=>$value): ?><tr>
								<td><?php echo ($value["id"]); ?></td>
								<td><?php echo ($value["username"]); ?></td>
								<td><?php echo ($value["role"]); ?></td>
								<td><!-- <input type="image" src="Public/img/images/icn_edit.png"
									title="Edit"
									onclick="window.location.href='index.php?m=home&c=index&a=_update&id=<?php echo ($value["id"]); ?>'"> --><input
									type="image" src="Public/img/images/icn_trash.png" title="Trash"
									onclick="window.location.href='index.php?m=home&c=index&a=admindel&id=<?php echo ($value["id"]); ?>'"></td>
							</tr><?php endforeach; endif; ?>
						</tbody>
					</table>
				</div>
				<!-- end of #tab1 -->

				<div id="tab2" class="tab_content"></div>
				<!-- end of #tab2 -->

			</div>
			<!-- end of .tab_container -->

		</article>
		<!-- end of content manager article -->
		<div class="spacer"></div>
	</section>
</body>
</html>